//USAGE [ehshtml]HTML Content[/ehshtml]

global $pref, $e107;

if ($pref['hs_iframe_on']) {

$code_text   = $tp -> toAttribute($code_text);
$parm   = $tp -> toAttribute($parm);

$cap_name = microtime(TRUE);

$text = "<noindex><a href='".($parm != "" ? $parm : $code_text)."' onclick=\"return hs.htmlExpand(this, { contentId: 'highslide-html-".$cap_name."', objectType: 'iframe', objectWidth: ".$pref['hs_foto_view_width'].",  objectHeight: ".$pref['hs_foto_view_height']."  } )\" class='highslide'>".$code_text."<img src='".e_PLUGIN."eHighSlide/images/icon_16.png' style='border:0px; ' /></a></noindex><div class='highslide-html-content' id='highslide-html-".$cap_name."' style='width: ".$pref['hs_foto_view_width']."px'><div class='highslide-move' style='border: 0; height: 18px; padding: 2px; cursor: default'><a href='#' onclick='return hs.close(this)' class='control'>X</a></div><div class='highslide-body'></div><div style='text-align: center; border-top: 1px solid silver; padding: 5px 0'>".($parm != "" ? $parm : $code_text)."</div></div>";

return $text;

}

return $tp->toHTML("[link=".$code_text."]".$code_text."[/link]", true);